#!/bin/bash

. /etc/init.d/functions

for i in 199 200; do
    ssh -p22 lavenliu@192.168.56.${i} /sbin/ifconfig eth0
    if [ $? -ne 0 ]; then
        action "view failure" /bin/false
    else
        action "view successfully" /bin/true
    fi
done

